package com.qf.utils;

import org.apache.shiro.crypto.hash.Md5Hash;

import java.util.UUID;

/**
 * 2019/12/10
 * 郭程鹏
 * springboot_oa_five
 * 面向代码面向君,不负时光不负卿
 */

public class Md5Util {

    public static String getMd5Password(String salt,String password){


        Md5Hash md5Hash2 = new Md5Hash(password,salt, 1024);
        return md5Hash2.toString();
    }
    public static String uuidRandom(){
        String s = UUID.randomUUID().toString().replaceAll("-", "");
        System.out.println(s);
        return s;

    }
}
